/*
 * Copyright @ 2025 weili23
 * com.example.ai 10:27
 * All right reserved.
 */

package com.example.ai;

import com.example.ai.assistant.Assistant;
import dev.langchain4j.model.openai.OpenAiChatModel;
import dev.langchain4j.service.AiServices;
import dev.langchain4j.service.spring.AiService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

/**
 * @desc:
 * @author: weili23
 * @createTime: 2025/4/29 10:27
 * @version: v1.0
 */
@SpringBootTest
public class AIService {
    @Autowired
    private Assistant assistant;
    @Test
    public void test() {
        String message = assistant.chat("你好");
        System.out.println(message);
    }
}
